require(['jquery', 'cookie', 'app', "lay"], function ($) {
    layui.use(['layer', 'carousel', 'element'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var carousel = layui.carousel;
        var device = layui.device();
        // 渲染轮播
        carousel.render({
            elem: '#workplaceNewsCarousel',
            width: '100%',
            height: '70px',
            arrow: 'none',
            autoplay: true,
            trigger: device.ios || device.android ? 'click' : 'hover',
            anim: 'fade'
        });

    });
    require(['vue'], function (Vue) {
        var dic = new Vue({
            el: ".vue-box"
            , data: {
                that: {},
                thatUser: {},
            }
            , created: function () {
                this.that = playGet("/v1/api/home/title").data
                this.thatUser = JSON.parse(localStorage.getItem("userInfo"));
            }
            , methods: {}
        });
    })
});
